﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIConvertTool
{
    public enum FileStatus
    {
        未完成,
        进行中,
        已完成
    }

    internal class FileInfoModel : INotifyPropertyChanged
    {
        public string? FileName { get; set; }
        // public FileStatus Status { get; set; }
        private FileStatus _status;
        public FileStatus Status
        {
            get { return _status; }
            set
            {
                if (_status != value)
                {
                    _status = value;
                    OnPropertyChanged("Status");
                }
            }
        }

        public event PropertyChangedEventHandler? PropertyChanged;
        private void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
